The food menu list is embedded in a NavigationView . Using the knowledge acquired in previous courses, which element you should use to display each of the items in the list that makes them tappable and able to open a new page when selected?
Why should you make a struct identifiable?
What is the basic difference between the modifiers onAppear and task that can be applied to SwiftUI views?
The app that is being built in this course follows the structure shown in the next picture:
When an item is selected from the food items list, a new page opens showing details about the selected food. At the top of that new window, there is a back arrow which lets you navigate back to the previous page.
How do you have to build the food items on the list to make it work like this?
Which steps might you use to add a search bar to a SwiftUI view?
The main screen of the app you are building in this course has the following structure:
The menu breakdown area shows a list of food categories, such as Starters, Desserts, Drinks, Specials, etc.
Which code would you use to build a list with these categories that meet the following requirements?
The list is horizontal and scrollable.
The category names cannot be truncated.
No need to make the elements tappable.
An entity is created in the Core Data model called Dish . This entity must contain the following properties: name , price and description . XCode will not let one property be named as description , why?